import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/layout'

const originalPush = Router.prototype.push;
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      component: () => import('@/views/login/index'),
      hidden: true
    },

    {
      path: '/404',
      component: () => import('@/views/404'),
      hidden: true
    },

    {
      path: '/',
      component: Layout,
      redirect: '/chart',
    },
    {
      path: '/chart',
      component: Layout,
      children: [
        {
          path: '/chart',
          name: 'chart',
          component: () => import('@/view/chart/index')
        },

      ]
    }
  ]
})

